﻿import request from '@/utils/request';
// list
export const zhuanyeList = (params) => {
    return request({
        url: '/zhuanye/page',
        method: 'post',
        data: params,
    })
};
export const zhuanyeDetail = (id) => {
    return request({
        url: '/zhuanye/'+id,
        method: 'get',
    })
};
// add
export const zhuanyeSave = (params) => {
    return request({
        url: '/zhuanye',
        method: 'post',
        data: params,
    })
};
// updt
export const zhuanyeEdit = (params) => {
    return request({
        url: '/zhuanye',
        method: 'put',
        data: params,
    })
};
// delete
export const zhuanyeDelete = (id) => {
    return request({
        url: '/zhuanye/'+id,
        method: 'delete',
    })
};
// pldel
export const zhuanyeDeleteList = (zhuanyes) => {
    return request({
        url: '/zhuanye/deleteList',
        data:{list:zhuanyes},
        method: 'post',
    })
};
// all
export const zhuanyeAllList = () => {
    return request({
        url: '/zhuanye',
        method: 'get',
    })
};

